package cn.supermarket.service.iservice;


import cn.supermarket.pojo.dto.AddOrderDTO;
import cn.supermarket.pojo.vo.PurchaseOrdersVO;
import cn.supermarket.pojo.vo.SimpleOrderVO;

import java.util.Date;
import java.util.List;

/**
 * 订单记录
 */
public interface IOrderService {

    /**
     * 添加订单记录
     */
    void addOrder(AddOrderDTO addOrderDTO);
    /**
     * 修改备注/可见/作废
     */
    void updateOrderIsDisplay(Long orderId,Integer isDisplay);
    void updateOrderIsEnable(Long orderId,Integer isEnable);

    /**
     * 按照单号查询
     */
    List<PurchaseOrdersVO> selectOrderByIdOrByTime(Long id,Date startTime,Date endTime);

    /**
     * 按照日期查询
     */

    /**
     * 按照客户查询
     */
    List<SimpleOrderVO> selectOrderByPurchaser(String purchaser);

    /**
     * 导出记录
     */

}
